export default [
  {
    path: "/user",
    layout: false,
    routes: [
      {
        path: "/user",
        routes: [
          {
            path: "/user",
            redirect: "/user/login",
          },
          {
            name: "login",
            path: "/user/login",
            component: "./user/Login",
          },
          {
            name: "headless",
            path: "/user/headless",
            component: "./user/Headless",
          },
        ],
      },
      {
        component: "./404",
      },
    ],
  },
  {
    path: "/mydata",
    name: "mydata",
    icon: "bar-chart",
    component: "./Mydata",
  },
  {
    path: "/mytemplate",
    name: "mytemplate",
    icon: "profile",
    component: "./Mytemplate",
  },
  {
    path: "/myreport",
    name: "myreport",
    icon: "solution",
    component: "./Myreport",
  },
  {
    name: "list.table-list",
    icon: "table",
    path: "/list",
    layout: false,
    hideInMenu:true,
    component: "./Welcome",
  },
  {
    title: "预览",
    path: "/preview",
    layout: false,
    hideInMenu:true,
    component: "./PreviewPro",
  },
  {
    path: "/",
    redirect: "/mydata",
  },
  {
    component: "./404",
  },
];
